#include <iostream>
#include<vector>
using std::cout;
using std::endl;
using std::vector;
class Point{
public:
Point(int x,int y)
    :_x(x)
    ,_y(y){}
void print(){
    cout<<_x<<","<< _y<<endl;
}
private:
int _x;
int _y;
};
void test(){
    vector<Point> point{Point(1,2),Point(2,3),Point(3,4)};
    auto it1 = point.begin();
    auto it2 = point.end();
    while(it1 != it2){
       (*it1).print();
       ++it1;
    }
}
int main()
{
    test();
    return 0;
}

